<!--
	作者：495246490@qq.com
	时间：2016-04-25
	描述：参数文案列表
-->
<h3>兑换码详情
</h3>
<div  ng-controller="codeDetailListCtrl" class="panel panel-default">
    <div class="col-sm-12">
        <div class="panel-heading">
            <form class="form-inline text-center">
                <div class="form-group pull-left">
                    <h4>生成编号：{{cdkeyInfoId}}</h4>
                </div>
                <div class="form-group">
                    <input type="text" ng-change="dataChange()" ng-model="search" class="form-control" placeholder="{{searchplaceholder}}">
                    <label for="">{{selectName}}</label>
                    <select class="custom-css form-control"  ng-model="selectValue" ng-change="dataChange()" ng-options="selectValue._value_ for selectValue in type" ></select>
                </div>
                <a type="button" class="btn btn-labeled btn-warning pull-right" download href="/ixinghui/cms/cdkey/getExcel?{{downloadUrl}}">
                    <span class="btn-label">
                        <i class="icon-share-alt"></i>
                    </span>导出Excel
                </a>
            </form>
        </div>
    </div>
    <div class="panel-body " ng-class="loading?'whirl standard':'' " style="border-top: 1px solid #CFDBE2;">
        <table class="table table-striped table-condensed">
            <thead>
            <tr>
                <th>编号</th>
                <th>兑换码</th>
                <th>兑换人</th>
                <th>兑换时间</th>
                <th>使用状态</th>
            </tr>
            </thead>
            <tbody>
            <!-- repeat begin -->
            <tr ng-repeat=" resultItem in result ">
                <td>{{turnPage.itemsPerPage*(turnPage.currentPage-1)+1+$index}}</td>
                <td>{{resultItem.cdkey}}</td>
                <td>{{resultItem.user.phoneNo}}</td>
                <td>{{resultItem.conversionTime}}</td>
                <td>{{resultItem.status | codeUse_status}}</td>
            </tr>
            <!-- repeat end -->
            </tbody>
        </table>
        <p style="display: inline-block; margin:21px 0;height: 30px;line-height: 30px;"> 显示 <strong>{{turnPage.totalItems}}</strong> 条中的 <strong>{{turnPage.itemsPerPage*(turnPage.currentPage-1)+1}}-{{ToNum}}</strong> 条</p>
        <pagination class="pull-right" first-text="{{turnPage.firstText}}" previous-text="{{turnPage.previousText}}" next-text="{{turnPage.nextText}}" last-text="{{turnPage.lastText}}" total-items="turnPage.totalItems" ng-model="turnPage.currentPage" max-size="turnPage.maxSize"
                    num-pages="numPages" boundary-links="true" ng-change="dataChange()" class="pagination-sm">
        </pagination>
    </div>
</div>